<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="text" name="" id="">
    <button>点击发送短信</button>
    <script>
        var time = null;
        var send = document.querySelector('button');
        send.addEventListener('click', function() {
            var i = 10;
            timer();
            send.disabled = true;

            var getTime = setInterval(timer, 1000);

            function timer() {
                console.log(i);
                i--;
                if (i == 0) {
                    send.innerHTML = '点击发送短信';
                    send.disabled = false;
                    i = 60;
                    clearInterval(getTime)
                } else {
                    send.innerHTML = '请在' + i + '秒后重新发送';
                }


            }


        });
        var getTime = function() {

            // setInterval()

        }
    </script>
</body>

</html>